#include <iostream>

using namespace std;

int main()
{
	
	
	
	cout <<(-5%23+23)%23 << endl;
}
